<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>相亲人员</title>
    <link href="css/style.css?v=1" rel="stylesheet" type="text/css">
</head>
<body>
<div class="search-box">
    <form method="get">
        <input type="input" name="q" value="{{.Q}}">&nbsp;&nbsp;
        <input type="submit" value="搜索">
    </form>
    <h2>共为你找到相关结果为{{.Hits}}个。 显示从{{.Start}}起共{{len .Items}}个</h2>
</div>
<table class="list">
    {{range .Items}}
    <tr>
        <td><a href="{{.Url}}">{{.Payload.Name}}</a></td>
        {{with .Payload}}
        <td>{{.City}}</td>
        <td>{{.Age}}</td>
        <td>{{.EB}}</td>
        <td>{{.Marriage}}</td>
        <td>{{.Height}}</td>
        <td>{{.Revenue}}</td>
        {{end}}
    </tr>
    {{else}}
    <tr>
        <td colspan="7">找不到数据</td>
    </tr>
    {{end}}
</table>
<div style="text-align: center">
    {{if ge .PreFrom 0}}
    <a href="search?q={{.Q}}&from={{.PreFrom}}">上一页</a>
    {{end}}
     {{if lt .NextFrom .Hits}}
    <a href="search?q={{.Q}}&from={{.NextFrom}}">下一页</a>
    {{end}}
</div>
</body>
</html>